package com.qf.hospital.dto;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * @author Administrator
 * @version V1.0
 * @Project hospital
 * @Package com.qf.hospital.dto
 * @Description: ${TODO}
 * @Date 2021/10/20 22:14
 */
public class SysMenuDTO {

    private Integer id;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 父节点id
     */

    @NotNull(message = "父节点id不能为空")
    private Integer parentId;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空")
    private String title;

    /**
     * 访问地址
     */
    private String href;

    /**
     * 0-不展开,1-展开
     */
    private Integer spread;

    /**
     * 图标
     */
    @NotBlank(message = "图标不能为空")
    private String icon;

    /**
     * 0-不可用,1-可用
     */
    @NotNull(message = "状态不能为空")
    private Integer available;

    public Integer getParentId() {
        return parentId;
    }

    public void setPid(Integer parentId) {
        this.parentId = parentId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public Integer getSpread() {
        return spread;
    }

    public void setSpread(Integer spread) {
        this.spread = spread;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getAvailable() {
        return available;
    }

    public void setAvailable(Integer available) {
        this.available = available;
    }

    @Override
    public String toString() {
        return "SysMenuDTO{" +
                "parentId=" + parentId +
                ", title='" + title + '\'' +
                ", href='" + href + '\'' +
                ", spread=" + spread +
                ", icon='" + icon + '\'' +
                ", available=" + available +
                '}';
    }
}
